#import "OnyxAnticipateController.h"
        
#import "OnyxAnticipateModel.h"
#import "OnyxAnticipateCell.h"
#import "Masonry.h"

@interface OnyxAnticipateController () <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UITableView *quaintWindfallOasisTableView;
@property (nonatomic, strong) NSMutableArray *leapfrogModels;

@end

@implementation OnyxAnticipateController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self knotVelvetConfigsview];
	[self charismarequestData];
}


//: 获取数据模型
- (void)charismarequestData {
	
}

- (UITableView *)figHandleTableView {
    if (!_quaintWindfallOasisTableView) {
        _quaintWindfallOasisTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
        _quaintWindfallOasisTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
        _quaintWindfallOasisTableView.estimatedRowHeight = 0;
        _quaintWindfallOasisTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
        _quaintWindfallOasisTableView.contentInset = UIEdgeInsetsMake(16, 0, 16, 0);
        _quaintWindfallOasisTableView.delegate = self;
        _quaintWindfallOasisTableView.dataSource = self;
        _quaintWindfallOasisTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
        _quaintWindfallOasisTableView.showsVerticalScrollIndicator = NO;
        _quaintWindfallOasisTableView.showsHorizontalScrollIndicator = NO;
        _quaintWindfallOasisTableView.backgroundColor = UIColor.clearColor;
    }
    return _quaintWindfallOasisTableView;
}

//: 懒加载数据模型数组
- (NSMutableArray *)leapfrogModels {
	if (!_leapfrogModels) {
		_leapfrogModels = [NSMutableArray array];
	}
	return _leapfrogModels;
}

//: 初始化页面UI
- (void)knotVelvetConfigsview {

	[self.view addSubview:self.quaintWindfallOasisTableView];
	[self.quaintWindfallOasisTableView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.leading.trailing.equalTo(self.view);
		make.top.equalTo(self.view);
		make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom);
	}];
}


#pragma mark - UITableView DataSource 
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.leapfrogModels.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    OnyxAnticipateCell *rebirthQuench = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([OnyxAnticipateCell class])];
    if (rebirthQuench == nil) {
        rebirthQuench = [[OnyxAnticipateCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:NSStringFromClass([OnyxAnticipateCell class])];
    }
    rebirthQuench.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return rebirthQuench;
}


#pragma mark - UITableView Delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // cell tap action
}


@end
